package ve.usb.ddp.hibernate;

import ve.usb.cohesion.runtime.LocalDate;

import ve.usb.cohesion.runtime.LocalDate;



public class Pai implements java.io.Serializable, ve.usb.cohesion.runtime.Auditable {

    /** Creates a new instance of Pai */
    public Pai() {}
    
    /**
     * Holds value of property id.
     */
    private Long id;

    /**
     * Getter for property id.
     * @return Value of property id.
     */
    public Long getId() {
        return this.id;
    }

    /**
     * Holds value of property idPai.
     */
    private long idPai;

    /**
     * Getter for property idPai.
     * @return Value of property idPai.
     */
    public long getIdPai() {
        return this.idPai;
    }

    /**
     * Setter for property idPai.
     * @param idPai New value of property idPai.
     */
    public void setIdPai(long idPai) {
        this.id = this.idPai = idPai;
    }
    /**
     * Holds value of property ci.
     */
    private int ci;

    /**
     * Getter for property ci.
     * @return Value of property ci.
     */
    public int getCi() {
        return this.ci;
    }

    /**
     * Setter for property ci.
     * @param ci New value of property ci.
     */
    public void setCi(int ci) {
        this.ci = ci;
    }
    /**
     * Holds value of property fec_Ini.
     */
    private java.util.Date fec_Ini;

    /**
     * Getter for property fec_Ini.
     * @return Value of property fec_Ini.
     */
    public java.util.Date getFec_Ini() {
        return this.fec_Ini;
    }

    /**
     * Setter for property fec_Ini.
     * @param fec_Ini New value of property fec_Ini.
     */
    public void setFec_Ini(java.util.Date fec_Ini) {
        if (fec_Ini==null || fec_Ini instanceof LocalDate) 
            this.fec_Ini = fec_Ini;
        else this.fec_Ini = new LocalDate(fec_Ini);
    }
    /**
     * Holds value of property fec_Fin.
     */
    private java.util.Date fec_Fin;

    /**
     * Getter for property fec_Fin.
     * @return Value of property fec_Fin.
     */
    public java.util.Date getFec_Fin() {
        return this.fec_Fin;
    }

    /**
     * Setter for property fec_Fin.
     * @param fec_Fin New value of property fec_Fin.
     */
    public void setFec_Fin(java.util.Date fec_Fin) {
        if (fec_Fin==null || fec_Fin instanceof LocalDate) 
            this.fec_Fin = fec_Fin;
        else this.fec_Fin = new LocalDate(fec_Fin);
    }
    /**
     * Holds value of property articulo8.
     */
    private boolean articulo8;

    /**
     * Getter for property articulo8.
     * @return Value of property articulo8.
     */
    public boolean getArticulo8() {
        return this.articulo8;
    }

    /**
     * Setter for property articulo8.
     * @param articulo8 New value of property articulo8.
     */
    public void setArticulo8(boolean articulo8) {
        this.articulo8 = articulo8;
    }
    /**
     * Holds value of property profesor.
     */
    private Profesor profesor;

    /**
     * Getter for property profesor.
     * @return Value of property profesor.
     */
    public Profesor getProfesor() {
        return this.profesor;
    }

    /**
     * Setter for property profesor.
     * @param profesor New value of property profesor.
     */
    public void setProfesor(Profesor profesor) {
        this.profesor = profesor;
    }



    public String toString() {
        return "<Pai id='C" + this.id +
        //idPai
        "\" ci =\"" + ci +
        "\" fec_Ini =\"" + fec_Ini +
        "\" fec_Fin =\"" + fec_Fin +
        "\" articulo8 =\"" + articulo8 +
        ((profesor==null) ? "" : "\" profesor =\"C" + profesor.getId()) +
        "'/>";
    }

}